package com.yanyilu.onetoure.service;

import com.yanyilu.onetoure.entity.User;
import com.yanyilu.onetoure.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    UserMapper userMapper;

    public User findByUserId(Integer userId){
        return userMapper.findOne(userId);
    }
}
